
<!doctype html>
<html lang="en">
<head>
<META HTTP-EQUIV="pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate"> 
<META HTTP-EQUIV="expires" CONTENT="0">
<meta charset="UTF-8" />
<title>单位基本信息</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
	content="width=device-width, initial-scale=1, maximum-scale=1">
<link rel="stylesheet" href="../../../layui/css/layui.css" media="all">
<script src="../../../layui/layui.js" charset="utf-8"></script>
<script src="../../../js/angular.js" charset="utf-8"></script>
<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
<script type="text/javascript" src="../gjjhbj/fy.js"></script>
	<link rel="stylesheet" href="../../../css/font_eolqem241z66flxr.css" media="all" />
	<link rel="stylesheet" href="../../../css/news.css" media="all" />
	<script type="text/javascript" src="../../../layui/layui/GetPath.js"></script>
	<script src="../../../layui/layui/layui.js" charset="utf-8"></script>
<style>
.layui-form-label {
	text-align: right;
	width:130px;
}
.layui-form-item{
	height:30px;
	width:100%;
}
</style>


</head>
<body class="childrenBody">
	<div class="sysNotice col">
			<blockquote class="layui-elem-quote title">单位基本信息</blockquote>
			<table class="layui-table">
				<colgroup>
					<col width="15%"  style="min-width:100px">
					<col width="35%">
					<col width="15%" style="min-width:100px">
					<col  width="35%">
				</colgroup>
				<tbody>
					<tr>
						<td style="text-align:left;">单位账号</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWZH"></b></td>
						<td style="text-align:left;">单位性质</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWXZ"></b></td>
					</tr>
					<tr>
						<td style="text-align:left;">单位名称</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWMC"></b></td>
						<td style="text-align:left;">开户时间</td>
						<td style="text-align:left;padding-left:20px;"><b id="KHSJ"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">单位设立日期</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWSLRQ"></b></td>
						<td style="text-align:left;">单位地址</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWDZ"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">财务负责人</td>
						<td style="text-align:left;padding-left:20px;"><b id="CWFZR"></b></td>
						<td style="text-align:left;">组织机构代码</td>
						<td style="text-align:left;padding-left:20px;"><b id="ZZJGDM"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">缴存情况</td>
						<td style="text-align:left;padding-left:20px;"><b id="JCQK"></b></td>
						<td style="text-align:left;">单位缴存比例</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWJCBL"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">个人缴存比例</td>
						<td style="text-align:left;padding-left:20px;"><b id="GRJCBL"></b></td>
						<td style="text-align:left;">开户银行</td>
						<td style="text-align:left;padding-left:20px;"><b id="KHYH"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">实缴人数</td>
						<td style="text-align:left;padding-left:20px;"><b id="SJRS"></b></td>
						<td style="text-align:left;">单位法人代表姓名</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWFRDBXM"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">账号</td>
						<td style="text-align:left;padding-left:20px;"><b id="ZHANGH"></b></td>
						<td style="text-align:left;">缴存银行</td>
						<td style="text-align:left;padding-left:20px;"><b id="JCYH"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">单位邮编</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWYB"></b></td>
						<td style="text-align:left;">电话</td>
						<td style="text-align:left;padding-left:20px;"><b id="TELEPHONE"></b></td>
					</tr>	
					<tr>
						<td style="text-align:left;">单位发薪日</td>
						<td style="text-align:left;padding-left:20px;"><b id="DWFXR"></b></td>
						<td style="text-align:left;">经办人手机号码</td>
						<td style="text-align:left;padding-left:20px;"><b id="JBRSJHM"></b></td>
					</tr>						
				</tbody>
			</table>
			<div class="layui-form-item" align="center">
				<input class="layui-btn" id="xxbg" style="width: 15%" value="信息变更申请">
			</div>
		</div>

	
	
	<script>
				layui.use('layer', function(){
  var layer = layui.layer;
  
});  
	</script>
	<script type="text/javascript">
		function getPath() {
			return 'http://' + location.host;
		}
	</script>
	<script type="text/javascript"
		src="../../../layui/lay/modules/layer.js"></script>
	<script type="text/javascript" src="../../../layui/layer.ext.js"></script>
	<script src="../../../layui/jquery-3.2.1.min.js" charset="utf-8"></script>
	<script type="text/javascript">
		$(function() {
		
		$("#form1 input[type='text']").attr("readonly","readonly");
		$("#form1 input[type='text']").attr("style","border:none");
		var cc="";
		$.ajax({
				url : getPath() + '/wsyyt/dwxxbgcontroller/test',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
					var  data = result.data;
						$.each(data[0], function(key, value) {
							$("#" + key).html(value || "");
						});
						if(result.msg!='成功')
						layer.alert('提示：'+result.msg, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});	
				}
			});
			
			$("#xxbg").click(function(){
			$.ajax({
				url : getPath() + '/wsyyt/dwxxbgcontroller/test1',
				method : 'post',
				dataType : 'JSON',
				success : function(result) {
						if(result.data.length!=0){
							cc=1;
						}
						else{
							cc=2;
						}
						layer.open({
		                    type: 2,
		                    title: '单位信息变更申请',
		                    shadeClose: true,
		                    shade: false,
		                    maxmin: true, //开启最大化最小化按钮
		                    area: ['90%', '90%'],
		                    content: getPath()+'/wsyyt/dwwsyyt/dw/dwxxbg/bgxx.html?cc='+cc
		                });
				}
			});
		
			
			})
								
			$("#submit").click(
					function() {
					var bDWYB = $("#BGHDWYB").val();
						var bDWFRDBXM = $("#BGHFRDB").val();
						var bSJHM = $("#BGHDH").val();
						var bCWFZR = $("#BGHCFWZR").val();
						var bCWFZRDH = $("#BGHCWFZRDH").val();
						var bKHYH = $("#BGHKHYH").val();
						var bZH = $("#BGHZH").val();

						var bDWDZXX = $("#BGHDWDZYX").val();
						var bDWFXR = $("#BGHDWFXR").val();
						var bJBRSJHM = $("#BGHJBRSJH").val();

						var bJCYH = $("#BGHJCYH").val();
						var bDWJCBL = $("#BGHDWJCBL").val();
						var bGRJCBL = $("#BGHGRJCBL").val();
						//原信息
						var DWZH = $("#DWZH").val();
						var DWMC = $("#DWMC").val();
						var DWYB = $("#DWYB").val();
						var DWFRDBXM = $("#DWFRDBXM").val();
						var DH = $("#TELEPHONE").val();
						var CWFZR = $("#CWFZR").val();
						var CWFZRDH = $("#CWFZRDH").val();
						var KHYH = $("#KHYH").val();
						var ZH = $("#ZHANGH").val();
						var JCYH = $("#JCYH").val();
						var DWJCBL = $("#DWJCBL").val();
						var GRJCBL = $("#GRJCBL").val();
						var DWDZXX = $("#DWDZXX").val();
						var DWFXR = $("#DWFXR").val();
						var JBRSJHM = $("#JBRSJHM").val();
						if (bDWYB != "" && bDWYB != null && bDWFRDBXM != ""
								&& bDWFRDBXM != null && bSJHM != ""
								&& bSJHM != null && bCWFZR != ""
								&& bCWFZR != null && bCWFZRDH != null
								&& bCWFZRDH != "" && bKHYH != ""
								&& bKHYH != null && bZH != "" && bZH != null
								&& bDWDZXX != "" && bDWDZXX != null
								&& bDWFXR != "" && bDWFXR != null
								&& bJBRSJHM != "" && bJBRSJHM != null
								&& bJBRSJHM.length == 11 && bDWJCBL > 4
								&& bDWJCBL<13 && bGRJCBL>4 && bGRJCBL < 13) {
							$.ajax({
								url : getPath() + '/wsyyt/dwxxbgcontroller/bg',
								method : 'post',
								dataType : 'JSON',
								data : {
									'bGRJCBL' : bGRJCBL,
									'bDWJCBL' : bDWJCBL,
									'bJCYH' : bJCYH,
									'bDWYB' : bDWYB,
									'bDWFRDBXM' : bDWFRDBXM,
									'bSJHM' : bSJHM,
									'bCWFZR' : bCWFZR,
									'bCWFZRDH' : bCWFZRDH,
									'bKHYH' : bKHYH,
									'bZH' : bZH,
									'bDWDZXX' : bDWDZXX,
									'bDWFXR' : bDWFXR,
									'bJBRSJHM' : bJBRSJHM,
									'DWZH' : DWZH,
									'DWMC' : DWMC,
									'DWYB' : DWYB,
									'DWFRDBXM' : DWFRDBXM,
									'DH' : DH,
									'CWFZR' : CWFZR,
									'CWFZRDH' : CWFZRDH,
									'KHYH' : KHYH,
									'ZH' : ZH,
									'JCYH' : JCYH,
									'DWJCBL' : DWJCBL,
									'GRJCBL' : GRJCBL,
									'DWDZXX' : DWDZXX,
									'DWFXR' : DWFXR,
									'JBRSJHM' : JBRSJHM,
								},
								success : function(result) {
										layer.alert('提示：'+result.msg, {
								      skin: 'layui-layer-molv' //样式类名  自定义样式
								     ,closeBtn: 1    // 是否显示关闭按钮
								      ,anim: 1 //动画类型
								     ,btn: ['确认'] //按钮
								      ,icon: 5    // icon
								     ,btn2:function(){
										
								     }});	
										location.reload();									
								}
							});
						} else if (bJBRSJHM.length != 11) {
							layer.alert("经办人手机号必须十一位！");
						} else if (bDWJCBL < 5) {
							layer.alert("单位缴存比例不能小于5");
						} else if (bDWJCBL > 13) {
							layer.alert("单位缴存比例不能大于13");
						} else if (bGRJCBL < 5) {
							layer.alert("个人缴存比例不能大于5");
						} else if (bGRJCBL > 13) {
							layer.alert("个人缴存比例不能大于13");
						} else {
							layer.alert("内容不可为空！");
						}
					});

			

			$("#cx").click(function() {
				table.reload('testReload', {
					url : getPath() + '/wsyyt/dwryxxcontroller/test',
					where : {
						'XM' : $("#YB").val(),
						'SFZH' : $("#SFZH").val(),
						'yj' : $("#yj").val(),
						'wj' : $("#wj").val(),
						'tj' : $("#tj").val()
					}
				//设定异步数据接的额外参数
				});
			});
		});

		/* 	var bDWYB=$("#DWYB1").val();
			var bDWFRDBXM=$("#DWFRDBXM1").val();
			var bSJHM=$("#TELEPHONE1").val();
			var bCWFZR=$("#CWFZR1").val();
			var bCWFZRDH=$("#CWFZRDH1").val();
			var bKHYH=$("#KHYH1").val();
			var bZH=$("#ZHANGH1").val();
			var bDWDZXX=$("#DWDZXX1").val();
			var bDWFXR=$("#DWFXR1").val();
			var bJBRSJHM=$("#JBRSJHM1").val();
			
			var bJCYH=$("#JCYH1").val();
			var bDWJCBL=$("#DWJCBL1").val();
			var bGRJCBL=$("#GRJCBL1").val();
			//原信息
			var DWZH=$("#DWZH").val();
			var DWMC=$("#DWMC").val();
			var DWYB=$("#DWYB").val();
			var DWFRDBXM=$("#DWFRDBXM").val();
			var DH=$("#DH").val();
			var CWFZR=$("#CWFZR").val();
			var CWFZRDH=$("#CWFZRDH").val();
			var KHYH=$("#KHYH").val();
			var ZH=$("#ZHANGH").val();
			var JCYH=$("#JCYH").val();
			var DWJCBL=$("#DWJCBL").val();
			var GRJCBL=$("#GRJCBL").val();
			var DWDZXX=$("#DWDZXX").val();
			var DWFXR=$("#DWFXR").val();
			var JBRSJHM=$("#JBRSJHM").val();
			$.ajax({
							url : getPath()+'/wsyyt/dwxxbgcontroller/bg',
							method : 'post',
							dataType : 'JSON',
							data: {'bGRJCBL':bGRJCBL,'bDWJCBL':bDWJCBL,'bJCYH':bJCYH,'bDWYB':bDWYB,'bDWFRDBXM':bDWFRDBXM,'bSJHM':bSJHM,'bCWFZR':bCWFZR,'bCWFZRDH':bCWFZRDH,'bKHYH':bKHYH,'bZH':bZH,'bDWDZXX':bDWDZXX,'bDWFXR':bDWFXR,'bJBRSJHM':bJBRSJHM,'DWZH':DWZH,'DWMC':DWMC,'DWYB':DWYB,'DWFRDBXM':DWFRDBXM,'DH':DH,'CWFZR':CWFZR,'CWFZRDH':CWFZRDH,'KHYH':KHYH,'ZH':ZH,'JCYH':JCYH,'DWJCBL':DWJCBL,'GRJCBL':GRJCBL,'DWDZXX':DWDZXX,'DWFXR':DWFXR,'JBRSJHM':JBRSJHM,},
							success : function(result) {
								var code = result.code;
								if(code==0){
										alert("变更成功");
									// window.location.href =getPath()+'/wsyyt/dwbjhjqccontroller/test1';
									  
								}else{				
										alert("变更失败");
									//window.location.href =getPath()+'/wsyyt/login/login.html';
									
								};
							}
						});	*/
	</script>
		<script type="text/javascript" src="../../../js/log.js"></script>
	
</body>
</html>